
<template>
	<!-- 添加每日菜品 -->
	<div>
		<el-row>
			<span class="formLable">基本信息</span>
		</el-row>
		<el-row :gutter="16">
			<el-col :span="4">
				<span class="formLable">学员：</span>
			</el-col>
			<el-col :span="4">
				<span class="formValue">麦学校</span>
			</el-col>
			<el-col :span="4">
				<span class="formLable">所在班级：</span>
			</el-col>
			<el-col :span="4">
				<span class="formValue">年级+班级</span>
			</el-col>
			<el-col :span="4">
				<span class="formLable">班级主任：</span>
			</el-col>
			<el-col :span="4">
				<span class="formValue">王老师</span>
			</el-col>
		</el-row>
		<el-row>
			<el-col :span="4">
				<span class="formLable">签到时间：</span>
			</el-col>
			<el-col :span="8">
				<span class="formValue">2019-11-26 18:00</span>
			</el-col>
		</el-row>
		<el-row :gutter="16">
			<el-col :span="4">
				<span class="formLable">签到状态：</span>
			</el-col>
			<el-col :span="5">
				<el-select v-model="saveParam.signMode" placeholder="请选择年级">
					<el-option label="一年级" value="1"></el-option>
					<el-option label="二年级" value="2"></el-option>
				</el-select>
			</el-col>
		</el-row>
		<el-row v-if="isEdite">
			<el-row>
				<el-col :span="4">
					<span class="formLable">备注：</span>
				</el-col>
				<el-col :span="20">
					<el-input
						type="textarea"
						placeholder="请输入内容"
						v-model="saveParam.remark"
						maxlength="100"
						:rows="4"
						show-word-limit
						>
					</el-input>
				</el-col>
			</el-row>
			<el-row style="text-align:center;">
				<el-button @click="cancle">取消</el-button>
				<el-button @click="save">确定修改</el-button>
			</el-row>
		</el-row>
		<el-row v-else>
			<editeRecord></editeRecord>
		</el-row>
	</div>
</template>

<script>
	let vm;
	import editeRecord from './attendance_edite_record'
	export default{
		components:{editeRecord},
		data(){
			return {
				isEdite:true,
				saveParam:{
					signMode:'',
					remark:'',
				},

			}
		},
		methods:{
			init(data){
				this.isEdite=data.isEdite;
			},
			cancle(){
				this.$emit('cancle',false);
			},
			save(){
				
				this.$emit('cancle',false);
			},
		},
		mounted(){
			vm=this;
		},
		computed:{
			
		},
		watch:{

		}
	}
</script>

<style lang="scss" scoped>
	.formLable,.formValue{
		font-size: 0.16rem;
		line-height: 0.4rem;
	}
	.formLable.must::before{
		content: '*';
		color: red;
		margin: 0 0.05rem;
	}
	.el-row{
		margin-bottom: 0.16rem;
	}
	.el-checkbox{
		font-size: 0.16rem;
		line-height: 0.4rem;
	}
	.el-radio{
		font-size: 0.16rem;
		line-height: 0.4rem;
	}
</style>
<style scoped src="@/style/module/table.css"></style>